package com.goldcn.user.dao;

import com.goldcn.user.model.UserMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserMessage record);

    int insertSelective(UserMessage record);

    UserMessage selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserMessage record);

    int updateByPrimaryKey(UserMessage record);

    List<UserMessage> selectByUserID(@Param("userID") Long userID, @Param("condition") String condition);

    int updateState(Long id);

    Long selectMaxTimeByUserID(Long userID);

    int insertBatch(List<UserMessage> params);

    int selectNotReadQty(@Param("userID") Long userID, @Param("condition") String condition);
}